# Contributor: Aaron Hurt <ahurt@ena.com>
# Maintainer: Aaron Hurt <ahurt@ena.com>
pkgname=glide
pkgver=0.13.3
pkgrel=1
pkgdesc="Vendor Package Management for Golang"
url="https://github.com/Masterminds/glide"
arch="all"
license="MIT"
depends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/Masterminds/glide/archive/v$pkgver.tar.gz"
builddir="$srcdir/go/src/github.com/Masterminds/glide"

prepare() {
	mkdir -p "$srcdir/go/src/github.com/Masterminds"
	mv "$srcdir/$pkgname-$pkgver" "$builddir"
}

build() {
	export GOPATH="$srcdir/go"
	go build -o glide -ldflags "-X main.version=$pkgver" glide.go
}

package() {
	install -sD -m 755 glide "$pkgdir"/usr/bin/glide
}

sha512sums="bb0cf1308a9ac0768db647552131867eaccbd8c449e10fb8c8f0fa41f0cca67983b15689ad307c5299a9a125a6a7bfea19fae39525eaf407c92d893918577945  glide-0.13.3.tar.gz"
